import { type AppState, type AppDispatch } from '.';
import { useDispatch, useSelector } from 'react-redux';
// dispatch类型化
export const useTypeDispatch = useDispatch.withTypes<AppDispatch>();
// useSelector类型化
export const useTypeSelector = useSelector.withTypes<AppState>();
